import request from '@/utils/request'

// 查询企业列表
export function enterpriseInfoList(query) {
  return request({
    url: '/system/enterpriseInfo/enterpriseInfoList',
    method: 'get',
    params: query
  })
}

// 查询平台服务订单列表
export function listPlatformServiceOrder(query) {
  return request({
    url: '/system/platformServiceOrder/list',
    method: 'get',
    params: query
  })
}

// 订单支付
export function payOrder(data) {
  return request({
    url: '/system/platformServiceOrder/payOrder',
    method: 'post',
    data: data
  })
}

// 取消订单
export function cancelOrderFn(data) {
  return request({
    url: '/system/platformServiceOrder/cancelOrder',
    method: 'post',
    data: data
  })
}

// 查询平台服务订单详细
export function getPlatformServiceOrder(id) {
  return request({
    url: '/system/platformServiceOrder/' + id,
    method: 'get'
  })
}

// 新增平台服务订单
export function addPlatformServiceOrder(data) {
  return request({
    url: '/system/platformServiceOrder',
    method: 'post',
    data: data
  })
}

// 修改平台服务订单
export function updatePlatformServiceOrder(data) {
  return request({
    url: '/system/platformServiceOrder',
    method: 'put',
    data: data
  })
}

// 删除平台服务订单
export function delPlatformServiceOrder(id) {
  return request({
    url: '/system/platformServiceOrder/' + id,
    method: 'delete'
  })
}
